package com.tianji.promotion.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum MyLockType {
    RE_ENTRANT_LOCK("可重入锁"), // 可重入锁
    FAIR_LOCK("公平锁"), // 公平锁
    READ_LOCK("读锁"), // 读锁
    WRITE_LOCK("写锁"), // 写锁
    ;

    @EnumValue
    @JsonValue
    private final String value;
}
